package com.dhcc.core.modules.msgcenter.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dhcc.core.framework.base.entity.BaseEntity;


/**
 * 消息推送记录
 * 
 * @ClassName: MsgPushLog
 * @Description: TODO
 * @author cyf
 * @date 2018-11-15 15:02:17
 */
@TableName("sys_msg_push_log") 
public class MsgPushLog extends BaseEntity<MsgPushLog> {
	private static final long serialVersionUID = 1L;
	
	//推送类型
	private String pushType;	
	//推送时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date pushTime;	
	//推送尝试次数
	private Integer pushNumber;	
    //接受者类型（0全体 1用户 ）
    private Integer receiveType;    
    //接受者ID
    private Long receiveId;  
    //接受者名称
    private String receiveName;    
    //消息对象
    @TableField(exist = false)
    private Msg msg; 
    //归属模块ID
    private Long moduleId;  
    //归属模块名
    private String moduleName;  
    //标题
    private String msgTitle;    
    //消息内容
    private String msgContent;  
    //发送者用户ID
    private Long sendUserId;    
    //发送者用户姓名
    private String sendUserName;    
	/**
	 * 设置：推送类型
	 */
	public void setPushType(String pushType) {
		this.pushType = pushType;
	}
	/**
	 * 获取：推送类型
	 */
	public String getPushType() {
		return pushType;
	}
	/**
	 * 设置：推送时间
	 */
	public void setPushTime(Date pushTime) {
		this.pushTime = pushTime;
	}
	/**
	 * 获取：推送时间
	 */
	public Date getPushTime() {
		return pushTime;
	}
	/**
	 * 设置：推送尝试次数
	 */
	public void setPushNumber(Integer pushNumber) {
		this.pushNumber = pushNumber;
	}
	/**
	 * 获取：推送尝试次数
	 */
	public Integer getPushNumber() {
		return pushNumber==null?0:pushNumber;
	}
    public Msg getMsg() {
        return msg;
    }
    public Integer getReceiveType() {
        return receiveType;
    }
    public void setReceiveType(Integer receiveType) {
        this.receiveType = receiveType;
    }
    public Long getReceiveId() {
        return receiveId;
    }
    public void setReceiveId(Long receiveId) {
        this.receiveId = receiveId;
    }
    public String getReceiveName() {
        return receiveName;
    }
    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }
    public Long getModuleId() {
        return moduleId;
    }
    public void setModuleId(Long moduleId) {
        this.moduleId = moduleId;
    }
    public String getModuleName() {
        return moduleName;
    }
    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }
    public String getMsgTitle() {
        return msgTitle;
    }
    public void setMsgTitle(String msgTitle) {
        this.msgTitle = msgTitle;
    }
    public String getMsgContent() {
        return msgContent;
    }
    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }
    public Long getSendUserId() {
        return sendUserId;
    }
    public void setSendUserId(Long sendUserId) {
        this.sendUserId = sendUserId;
    }
    public String getSendUserName() {
        return sendUserName;
    }
    public void setSendUserName(String sendUserName) {
        this.sendUserName = sendUserName;
    }
    
}
